%
O08702(BALLBAR*CICRCULAR*TRANSPORT)
(N-9967-2400-01) 
(COPYRIGHT*2024*RENISHAW*PLC.*ALL*RIGHTS*RESERVED) 

(WARNING!)
(Renishaw cannot guarantee that the part programs supplied are)
(correct.  Anyone using the part programs supplied by Renishaw)
(must ensure that the programs are suitable for the machine/controller)
(on which they are used.  Part programs should only be run by personnel)
(who are fully familiar with the machine, the controller and the)
(operation of all guards, interlocks and emergency stop switches.)
(It is recommended that programs are initially tested at low speed using)
(the feedrate override control.)

IF[#102LT360]GOTO10
#102=#102-360
N10
#2=#4002 
IF[[#100NE0]AND[#18NE0]]GOTO20 
#101=#20 
#102=#11 
GOTO90 
N20
IF[#11EQ#102]GOTO80
IF[#101EQ0]GOTO50
G17
G65P8704R#100T0H#102 
IF[#5042LT0]GOTO30 
G02X#103Y#104R#18
G65P8704A1.
G04P0.1
GOTO40 
N30
G03X#103Y#104R#18
G65P8704A1.
G04P0.1
N40
#101=0 
N50
G18
G65P8704R#100T0H#11
IF[#11LT#102]GOTO60
G02X#103Z#105R#18
G65P8704A1.
G04P0.1
GOTO70 
N60
G03X#103Z#105R#18
G65P8704A1.
G04P0.1
N70
#102=#11 
N80
IF[#20EQ#101]GOTO90
G17
G65P8704R#100T#20H#11
G03X#103Y#104R#18
G65P8704A1.
G04P0.1
#101=#20 
N90
IF[#18EQ#100]GOTO100 
G65P8701R#18T#101H#102 
#100=#18 
N100 
G#2
M99

%